package com.example.poverty.dao;

import com.example.poverty.entity.LeaveManagement;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 请假管理 dao层
 */
@Repository
public interface LeaveManagementMapper {
    //    增加
    public int insert(LeaveManagement leaveManagement);

    //    更新
    public int update(LeaveManagement leaveManagement);

    //    删除
    public int delete(Integer id);

    //    根据主键查询
    public LeaveManagement selectByPrimaryKey(Integer id);

    //    查询所有请假单
    public List<LeaveManagement> allLeaveManagement();

    //    根据姓名查询请假单
    public LeaveManagement getByName(String name);
}
